<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>136.菜单悬停放大特效</title>
  <link href="./style.css" rel="stylesheet">
</head>
<body>
  <ul>
    <li><a href="#">Home</a></li>
    <li><a href="#">About</a></li>
    <li><a href="#">Services</a></li>
    <li><a href="#">Team</a></li>
    <li><a href="#">Contact</a></li>
    <div class="cursor"></div>
  </ul>

  <script>
    const cursor = document.querySelector('.cursor')
    document.addEventListener('mousemove', e => {
      cursor.style.left = e.pageX + 'px'
      cursor.style.top = e.pageY + 'px'
    })
  </script>
</body>
</html>